package com.scpii.universal.exception;

import com.scpii.universal.constant.ExceptionConstants;

/**
 * genericWeb
 * @author liuhj
 * 2012-7-8上午10:12:05
 */
public class GenericException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1487014550164796608L;
	private String errorMsg = ExceptionConstants.MSG_SYSTEM_EXCEPTION;

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public GenericException() {
		super();
	}

	public GenericException(String message, Throwable cause) {
		super(message, cause);
		this.errorMsg = message;
	}

	public GenericException(String message) {
		super(message);
		this.errorMsg = message;
	}

	public GenericException(Throwable cause) {
		super(cause);
	}

}
